package com.snpic.appaw.module.member.constants;

/**
 * @author JiJun
 * @date 2025/8/26 10:00
 * @修改时间 2025/8/26 10:00
 * @description member-server专用常量
 */
public class MemberConstant {

	//登陆用验证码,Redis存储前缀
	public static final String LOGIN_CODE_PREFIX = "login:loginCode:";
	//登陆用验证码获取次数，五分钟内3次，redis存储前缀
	public static final String LOGIN_CODE_COUNT_PREFIX = "login:code:count:";
	//登陆用验证码,尝试校验次数,redis存储用前缀
	public static final String LOGIN_CODE_VERIFY_COUNT_PREFIX = "login:code:retryCount:";
	//普通验证码过期时间(分钟)，从码表读取用的key
	public static final String CODE_EXPIRE_MINUTES = "code_expire_minutes";
	//用户登录后产生的token过期时间(小时)
	public static final String TOKEN_EXPIRE_HOURS = "token_expire_hours";
	//码表key
	public static final String JWT_SECRET = "jwt_secret";
	//码表key
	public static final String LOGIN_PWD_INCORRECT_NUM = "login_pwd_incorrect_num";
	//用户来源：01-APP注册;02-微信注册;03-官网注册;04-邀请注册;05-微信邀请注册;06-移动官网注册
	public static final String CUSTOME_RSOURCE_APP = "01";
	public static final String CUSTOME_RSOURCE_WECHAT = "02";
	public static final String CUSTOME_RSOURCE_WEB = "03";
	public static final String CUSTOMER_SOURCE_INVITED = "04";
	public static final String CUSTOMER_SOURCE_MOBILE_WEB = "05";
	public static final String TPH_OPEN_ID_TIME_OUT = "tphOpenidTimeOut";
	//新建e_customer时的creator
	public static final String AfterIntegralMallVersion = "AfterIntegralMallVersion";
	//登录密码重试,限制，苏勇redis的前缀
	public static final String RETRY_PASSWORD_PREFIX = "login:retryPassword:";
	public static final String AppSource = "01";  // APP来源01
	public static final String WeChatSource = "02";  //微信来源注册
	public static final String WebSource = "03";  //官网注册03
	public static final String InviteSource = "04";  //邀请来源，04
	public static final String MobileWebSource = "06";  //移动官网注册06
	public static final String CiSource = "07";//碳普惠来源注册
	public static final String WebChannelCode = "101";  //官网渠道101g
	public static final String CiChannelCode = "108";  //碳普惠渠道代码
	public static final String MobileWebChannelCode = "106";  //移动官网渠道106
	public static final String AndroidChannelCode = "tianandroidSecretKeyan";  //Android渠道代码
	public static final String IosChannelCode = "tianiosSecretKeyan";  //IOS渠道代码

	//短信模板key，用户登陆用验证码
	public static final String SMS_TEMPLATE_LOGIN_CODE = "sms_template_login_code";
	//修改登录密码用验证码获取次数，redis存储前缀
	public static final String UPDATE_PASSWORD_CODE_COUNT_PREFIX = "update_password:code:count:";
	//修改用户密码用验证码,尝试校验错误次数,redis存储用前缀
	public static final String UPDATE_PASSWORD_CODE_VERIFY_COUNT_PREFIX = "update_password:code:retryCount:";
	//短信模板key，修改用户密码
	public static final String SMS_TEMPLATE_UPDATE_PASSWORD = "update_password_code";
	//用户修改密码用验证码，存储redis得key
	public static final String UPDATE_PASSWORD_CODE_PREFIX = "update_password:code:";
		//短信模板key，修改用户密码成功通知
	public static final String SMS_TEMPLATE_UPDATE_PASSWORD_SUCCESS = "update_password_success";
	//在线客服URL
	public static final String ONLINE_CUSTOMER_SERVICE_URL = "ONLINE_CUSTOMER_SERVICE_URL";
	//从码表读取虚拟号码前缀
	public static final String VIRTUAL_NUMBER_PREFIXES = "VirtualNumberPrefixes";
	public static final String UPDATE_PASSWORD_CODE_TOKEN_PREFIX = "pwd_update_token:";
}
